import Main from "@/components/main";
// t_body路由
export const body = [
  {
    path: "/body",
    name: "Body",
    component: Main,
    meta: {
      title: "产品数据库",
      icon: "icon iconfont iconzujian"
    },
    children: [
      {
        path: "/vehicle/vehicle-list",
        name: "VehicleList",
        meta: {
          title: "整车列表",
          privilege: [
            { title: "查询", name: "vehicle-list-query" },
            { title: "新增", name: "vehicle-list-add" },
            { title: "编辑", name: "vehicle-list-update" },
            { title: "批量删除", name: "vehicle-list-batch-delete" },
            { title: "批量导出", name: "vehicle-list-batch-export" },
            { title: "导出全部", name: "vehicle-list-export-all" }
          ]
        },
        component: () => import("@/views/business/vehicle/vehicle-list.vue")
      },
      // 最大支持到三级菜单
      {
        path: "/body",
        name: "BobyTwo",
        meta: {
          title: "零部件库"
        },
        children: [
          //  车身列表
          {
            path: "/body/body-list",
            name: "BodyList",
            meta: {
              title: "车身列表",
              privilege: [
                { title: "查询", name: "body-list-query" },
                { title: "新增", name: "body-list-add" },
                { title: "编辑", name: "body-list-update" },
                { title: "批量删除", name: "body-list-batch-delete" },
                { title: "批量导出", name: "body-list-batch-export" },
                { title: "导出全部", name: "body-list-export-all" }
              ]
            },
            component: () => import("@/views/business/body/body-list.vue")
          },

          //  发动机列表
          {
            path: "/engine/engine-list",
            name: "EngineList",
            meta: {
              title: "发动机列表",
              privilege: [
                { title: "查询", name: "engine-list-query" },
                { title: "新增", name: "engine-list-add" },
                { title: "编辑", name: "engine-list-update" },
                { title: "批量删除", name: "engine-list-batch-delete" },
                { title: "批量导出", name: "engine-list-batch-export" },
                { title: "导出全部", name: "engine-list-export-all" }
              ]
            },
            component: () => import("@/views/business/engine/engine-list.vue")
          },

          //  变速箱列表
          {
            path: "/gearbox/gearbox-list",
            name: "GearboxList",
            meta: {
              title: "变速箱列表",
              privilege: [
                { title: "查询", name: "gearbox-list-query" },
                { title: "新增", name: "gearbox-list-add" },
                { title: "编辑", name: "gearbox-list-update" },
                { title: "批量删除", name: "gearbox-list-batch-delete" },
                { title: "批量导出", name: "gearbox-list-batch-export" },
                { title: "导出全部", name: "gearbox-list-export-all" }
              ]
            },
            component: () => import("@/views/business/gearbox/gearbox-list.vue")
          },
          //  变矩器列表
          {
            path: "/torque-converter/torque-converter-list",
            name: "TorqueConverterList",
            meta: {
              title: "变矩器列表",
              privilege: [
                { title: "查询", name: "torque-converter-list-query" },
                { title: "新增", name: "torque-converter-list-add" },
                { title: "编辑", name: "torque-converter-list-update" },
                {
                  title: "批量删除",
                  name: "torque-converter-list-batch-delete"
                },
                {
                  title: "批量导出",
                  name: "torque-converter-list-batch-export"
                },
                { title: "导出全部", name: "torque-converter-list-export-all" }
              ]
            },
            component: () =>
              import(
                "@/views/business/torque-converter/torque-converter-list.vue"
              )
          },
          //  驱动桥列表
          {
            path: "/transaxle/transaxle-list",
            name: "TransaxleList",
            meta: {
              title: "驱动桥列表",
              privilege: [
                { title: "查询", name: "transaxle-list-query" },
                { title: "新增", name: "transaxle-list-add" },
                { title: "编辑", name: "transaxle-list-update" },
                { title: "批量删除", name: "transaxle-list-batch-delete" },
                { title: "批量导出", name: "transaxle-list-batch-export" },
                { title: "导出全部", name: "transaxle-list-export-all" }
              ]
            },
            component: () =>
              import("@/views/business/transaxle/transaxle-list.vue")
          },

          //  传动轴列表
          {
            path: "/driveshaft/driveshaft-list",
            name: "DriveshaftList",
            meta: {
              title: "传动轴列表",
              privilege: []
            },
            component: () =>
              import("@/views/business/driveshaft/driveshaft-list.vue")
          },

          //  车轮列表
          {
            path: "/wheel/wheel-list",
            name: "WheelList",
            meta: {
              title: "车轮列表",
              privilege: [
                { title: "查询", name: "wheel-list-query" },
                { title: "新增", name: "wheel-list-add" },
                { title: "编辑", name: "wheel-list-update" },
                { title: "批量删除", name: "wheel-list-batch-delete" },
                { title: "批量导出", name: "wheel-list-batch-export" },
                { title: "导出全部", name: "wheel-list-export-all" }
              ]
            },
            component: () => import("@/views/business/wheel/wheel-list.vue")
          }
        ]
      },
      {
        path: "/body",
        name: "BobyHuanjing",
        meta: {
          title: "环境工况库"
        },
        children: [
          //  环境列表
          {
            path: "/environment/environment-list",
            name: "EnvironmentList",
            meta: {
              title: "环境工况",
              privilege: [
                { title: "查询", name: "environment-list-query" },
                { title: "新增", name: "environment-list-add" },
                { title: "编辑", name: "environment-list-update" },
                { title: "批量删除", name: "environment-list-batch-delete" },
                { title: "批量导出", name: "environment-list-batch-export" },
                { title: "导出全部", name: "environment-list-export-all" }
              ]
            },
            component: () =>
              import("@/views/business/environment/environment-list.vue")
          },
          //  气候环境列表
          {
            path: "/atmosphere/atmosphere-list",
            name: "AtmosphereList",
            meta: {
              title: "气候环境",
              privilege: [
                { title: "查询", name: "atmosphere-list-query" },
                { title: "新增", name: "atmosphere-list-add" },
                { title: "编辑", name: "atmosphere-list-update" },
                { title: "批量删除", name: "atmosphere-list-batch-delete" },
                { title: "批量导出", name: "atmosphere-list-batch-export" },
                { title: "导出全部", name: "atmosphere-list-export-all" }
              ]
            },
            component: () =>
              import("@/views/business/atmosphere/atmosphere-list.vue")
          },

          //  行驶工况特性曲线 (drivecycle) UPDATE 列表
          /*{
        path: '/drivecycle/drivecycle-list',
        name: 'DrivecycleList',
        meta: {
          title: '行驶工况特性曲线 (drivecycle) UPDATE 列表',
          privilege: [
            { title: '查询', name: 'drivecycle-list-query' },
            { title: '新增', name: 'drivecycle-list-add' },
            { title: '编辑', name: 'drivecycle-list-update' },
            { title: '批量删除', name: 'drivecycle-list-batch-delete' },
            { title: '批量导出', name: 'drivecycle-list-batch-export' },
            { title: '导出全部', name: 'drivecycle-list-export-all' }
          ]
        },
        component: () => import('@/views/business/drivecycle/drivecycle-list.vue')
      },*/

          //  行驶工况特性曲线列表
          {
            path: "/driving-cycle/driving-cycle-list",
            name: "DrivingCycleList",
            meta: {
              title: "行驶工况",
              privilege: [
                { title: "查询", name: "driving-cycle-list-query" },
                { title: "新增", name: "driving-cycle-list-add" },
                { title: "编辑", name: "driving-cycle-list-update" },
                { title: "批量删除", name: "driving-cycle-list-batch-delete" },
                { title: "批量导出", name: "driving-cycle-list-batch-export" },
                { title: "导出全部", name: "driving-cycle-list-export-all" }
              ]
            },
            component: () =>
              import("@/views/business/driving-cycle/driving-cycle-list.vue")
          },

          //  路面列表
          {
            path: "/road/road-list",
            name: "RoadList",
            meta: {
              title: "路面",
              privilege: [
                { title: "查询", name: "road-list-query" },
                { title: "新增", name: "road-list-add" },
                { title: "编辑", name: "road-list-update" },
                { title: "批量删除", name: "road-list-batch-delete" },
                { title: "批量导出", name: "road-list-batch-export" },
                { title: "导出全部", name: "road-list-export-all" }
              ]
            },
            component: () => import("@/views/business/road/road-list.vue")
          }
        ]
      },
      //  整车详情
      {
        path: "/vehicle/vehicle-detail",
        name: "VehicleDetail",

        meta: {
          title: "整车详情",
          hideInMenu: true,
          privilege: []
        },
        component: () => import("@/views/business/vehicle/vehicle-detail.vue")
      },

      //  发动机详情
      {
        path: "/engine/engine-detail",
        name: "EnginDetail",

        meta: {
          title: "发动机详情",
          hideInMenu: true,
          privilege: []
        },
        component: () => import("@/views/business/engine/engin-detail.vue")
      },

      //  λ曲线详情
      {
        path: "/torque-converter/torque-converter-lambda",
        name: "TorqueConverterLambda",

        meta: {
          title: "变矩器详情",
          hideInMenu: true,
          privilege: []
        },
        component: () =>
          import(
            "@/views/business/torque-converter/torque-converter-lambda.vue"
          )
      },

      // 变速箱详情
      {
        path: "/gearbox/gearbox-detail",
        name: "GearboxDetail",

        meta: {
          title: "变速箱详情",
          hideInMenu: true,
          privilege: []
        },
        component: () =>
          import("@/views/business/gearbox/components/gearbox-detail.vue")
      },
      // 车身详情
      {
        path: "/body/body-detail",
        name: "BodyDetail",

        meta: {
          title: "车身详情",
          hideInMenu: true,
          privilege: []
        },
        component: () => import("@/views/business/body/body-detail.vue")
      },
      // 驱动桥详情
      {
        path: "/transaxle/transaxle-detail",
        name: "TransaxleDetail",

        meta: {
          title: "驱动桥详情",
          hideInMenu: true,
          privilege: []
        },
        component: () =>
          import("@/views/business/transaxle/transaxle-detail.vue")
      },
      // 传动轴详情
      {
        path: "/driveshaft/driveshaft-detail",
        name: "DriveshaftDetail",

        meta: {
          title: "传动轴详情",
          hideInMenu: true,
          privilege: []
        },
        component: () =>
          import("@/views/business/driveshaft/driveshaft-detail.vue")
      },
      // 车轮详情
      {
        path: "/wheel/wheel-detail",
        name: "WheelDetail",

        meta: {
          title: "车轮详情",
          hideInMenu: true,
          privilege: []
        },
        component: () => import("@/views/business/wheel/wheel-detail.vue")
      },
      // 气候环境
      {
        path: "/atmosphere/atmosphere-detail",
        name: "AtmosphereDetail",

        meta: {
          title: "气候环境详情",
          hideInMenu: true,
          privilege: []
        },
        component: () =>
          import("@/views/business/atmosphere/atmosphere-detail.vue")
      },
      // 气候环境
      {
        path: "/road/road-detail",
        name: "RoadDetail",

        meta: {
          title: "路面详情",
          hideInMenu: true,
          privilege: []
        },
        component: () => import("@/views/business/road/road-detail.vue")
      },
      // 气候环境
      {
        path: "/driving-cycle/driving-cycle-detail",
        name: "DrivingCycleDetail",

        meta: {
          title: "行驶工况详情",
          hideInMenu: true,
          privilege: []
        },
        component: () =>
          import("@/views/business/driving-cycle/driving-cycle-detail.vue")
      },
      // 气候环境
      {
        path: "/environment/environment-detail",
        name: "EnvironmentdDetail",

        meta: {
          title: "环境工况详情",
          hideInMenu: true,
          privilege: []
        },
        component: () =>
          import("@/views/business/environment/environment-detail.vue")
      }
    ]
  }
];
